package com.hdsx.restful.ygzt.cgggqcyyxl.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hdsx.ao.base.BaseOpearte;
import com.hdsx.restful.ygzt.cgggqcyyxl.bean.Cgggqcyyxl;
import com.hdsx.restful.ygzt.cgggqcyyxl.mapper.CgggqcyyxlMapper;
import com.hdsx.restful.ygzt.cgggqcyyxl.service.CgggqcyyxlServer;
/**
 * beanServer实现类
 *
 */
@Service
public class CgggqcyyxlServerImpl extends BaseOpearte<Cgggqcyyxl> implements CgggqcyyxlServer {

	public CgggqcyyxlServerImpl() {
		super("GIS_CGGGQCYYXL");
	}

	@Resource(name="cgggqcyyxlMapper")
	private CgggqcyyxlMapper mapper;

	@Override
	public int queryCount(String lxmc,String lxbm,String xzqhbm,String xlfx) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("lxbm", lxbm);
		parameter.put("name", lxmc);
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("xlfx", xlfx);
		return mapper.queryCount(parameter);
	}

	@Override
	public List<Cgggqcyyxl> queryList(String lxmc,String lxbm,String xzqhbm,String xlfx, int begin, int end) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("lxbm", lxbm);
		parameter.put("name", lxmc);
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("begin", begin);
		parameter.put("end", end);
		parameter.put("xlfx", xlfx);
		List<Cgggqcyyxl> lists=mapper.queryList(parameter);
		return lists;
	}

	@Override
	public Cgggqcyyxl queryById(String id) {
		return mapper.selectById(id);
	}
	@Override
	public List<String> selectName(String name){
		return mapper.selectName(name);
	}
}
